#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
int main()
{
	int y = 10;
	int i = 12345;
	int j = i % y;
	printf("%d\n", j);
	while (1)
	{
		
		int k = (i % (y=y*10)) / y;//
		printf("%d\n", k);
	}
	
	return 0;
}